package com.itheima.ATM;
/** 启动ATM数据封装类 */
public class Account {
    private String cardId;//卡号
    private String username;//姓名
    private char sex;//性别
    private String passWord;//密码
    private double money;//余额
    private double limit;//提现额度
    public Account() {
    }
    public Account(String cardId, String username, char sex, String passWord, double money, double limit) {
        this.cardId = cardId;
        this.username = username;
        this.sex = sex;
        this.passWord = passWord;
        this.money = money;
        this.limit = limit;
    }

    public String getCardId() {
        return cardId;
    }

    public void setCardId(String cardId) {
        this.cardId = cardId;
    }

    public String getUsername() {
            return sex=='男'? username+"先生": username+"女士";
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public char getSex() {
        return sex;
    }

    public void setSex(char sex) {
        this.sex = sex;
    }

    public String getPassWord() {
        return passWord;
    }

    public void setPassWord(String passWord) {
        this.passWord = passWord;
    }

    public double getMoney() {
        return money;
    }

    public void setMoney(double money) {
        this.money = money;
    }

    public double getLimit() {
        return limit;
    }

    public void setLimit(double limit) {
        this.limit = limit;
    }
}
